package com.oa.office.biz;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.oa.office.dao.SharMapper;
import com.oa.office.entity.Shar;

@Service
public class SharBiz {
	@Resource
	private SharMapper sharMapper;
	
	public List<Shar> selectAllShar(){
		return sharMapper.selectAllShar();
	}
	
	public Shar selectByPrimaryKey(Integer id){
		return sharMapper.selectByPrimaryKey(id);
	}
	
	public int insertSelective(Shar shar){
		Date createTime = new Date();
		shar.setCreateTime(createTime);
		return sharMapper.insertSelective(shar);
	}
}
